<%--
  Created by IntelliJ IDEA.
  User: sitapro
  Date: 2017/6/12
  Time: 13:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="page" %>
<page:page>
    <script src="${pageContext.request.contextPath}/js/page.js"></script>
    <style>
        .brown {
            color: #8a6d3b;
        }

        .time {
            width: 200px;
        }

    </style>

    <script>

        var platform = "${sessionScope.account.platform_code}";
        $(function () {
            getAccount();
            if (platform != "qiqi") {
                $(".platformCode").hide();
                $("#trade_type2").hide();
                middle();
                queryBut();
                return;
            } else {
                $("#trade_type1").hide();
            }
            getGroup();
        });

        function queryBut() {
            refreshPage();
            queryList($('.active').attr("tabindex"), $("#dataTables-example_length").val())
        }

        function refreshPage() {
            $("#paginationPage li").removeClass("active");
            $("#paginationPage li:first").addClass("active");
        }

        function getAccount() {

            var params = new Object();
            params.platformCode = "${sessionScope.account.platform_code}";

            $.ajax({
                url: '${pageContext.request.contextPath}/v1/actors/company/account',
                type: 'POST',
                datatype: 'json',
                contentType: 'application/json;charset=utf-8',
                Accept: 'application/json',
                data: JSON.stringify(params),
                cache: false,
                success: function (data, textStatus, jqXHR) {
                    $("#account_balance").html("账户余额:<span style='color: orange;font-size: 22px'>" + data.data.balance.toFixed(2) + "</span>");
                }
            });
        }

        function queryList(page, size) {
            var startdate = $('#startdate').val();
            var overdate = $('#enddate').val();
            if (startdate == null || startdate == "") {
                $("#startdate").val(getOneMonthEarlyDate());
            }
            if (overdate == null || overdate == "") {
                $("#enddate").val(getCurDate());
            }

            var params = new Object();
            if (platform == 'qiqi') {
                params.platformCode = $("#platformCode").val();
                params.type = $("#trade_type2").val();
            } else {
                params.platformCode = platform;
                params.type = $("#trade_type1").val();
            }

            params.size = size;
            params.page = page;
            params.startime = $("#startdate").val();
            params.endtime = $("#enddate").val();


            $.ajax({
                url: '${pageContext.request.contextPath}/v1/actors/company/flow',
                type: 'POST',
                datatype: 'json',
                contentType: 'application/json;charset=utf-8',
                Accept: 'application/json',
                data: JSON.stringify(params),
                cache: false,
                success: function (data, textStatus, jqXHR) {
                    $("#tbody").empty();
                    var platformCode = $("#platformCode").val();
                    if (platformCode == 'qiqi') {
                        $("#ttr").empty().append(' <th class="center" style="width:20%;">时间</th>' +
                            '<th class="center" style="width:15%;">交易类型</th>' +
                            '<th class="center" style="width:15%;">交易流水</th>' +
                            '<th class="center" style="width:15%;">平台收支</th>' +
                            '<th class="center" style="width:15%;">交易状态</th>' +
                            '<th class="center" style="width:20%;">操作</th>');
                    } else {
                        $("#ttr").empty().append(' <th class="center" style="width:20%;">时间</th>' +
                            '<th class="center" style="width:15%;">交易类型</th>' +
                            '<th class="center" style="width:10%;">交易流水</th>' +
                            '<th class="center" style="width:10%;">平台费用</th>' +
                            '<th class="center" style="width:10%;">维护分成</th>' +
                            '<th class="center" style="width:10%;">投资分成</th>' +
                            '<th class="center" style="width:9%;">实际收益</th>' +
                            '<th class="center" style="width:9%;">交易状态</th>' +
                            '<th class="center" style="width:8%;">操作</th>');
                    }
                    $(data.data).each(function () {
                        var state = this.tradeState;
                        var tradeType = this.tradeType;
                        var info = "";
                        var type = "";
                        if (state == 0) {
                            info = "交易成功";
                        }
                        if (state == 1) {
                            info = "退款成功";
                        }
                        if (state == 2) {
                            info = "退款失败";
                        }
                        if (tradeType == 8) {
                            type = "车辆出租收入";
                        }
                        if (tradeType == 5) {
                            type = "用户押金充值";
                        }
                        if (tradeType == 6) {
                            type = "用户余额充值";
                        }
                        if (tradeType == 7) {
                            type = "用户押金退款";
                        }
                        if (tradeType == 9) {
                            type = "车主提取现金";
                            if (state == 0) {
                                info = "交易成功";
                            }
                            if (state == 1) {
                                info = "提现成功";
                            }
                            if (state == 2) {
                                info = "提现失败";
                            }
                        }
                        if (tradeType == 11) {
                            type = "用户余额退款";
                        }
                        if (tradeType == 12) {
                            if (this.productCode == "140601") {
                                type = "用户脉保年费支出";
                            }
                            if (this.productCode == "140701") {
                                type = "用户脉保单次支出";
                            }
                        }
                        if (tradeType == 13) {
                            if (platformCode == 'qiqi') {
                                type = "调账支出";
                            } else {
                                type = "调账收入";
                            }
                        }
                        if (tradeType == 15) {
                            type ='车费退还支出';
                        }
                        if (platformCode == 'qiqi') {
                            $("#tbody").append('<tr class="odd gradeX" id=' + this.id + ' item= ' + JSON.stringify(this) + '>' +
                                '</tr>').data("item", this);
                            $("#" + this.id).empty().append('<td class="center">' + this.tradeTime + '</td> ' +
                                '<td class="center">' + type + '</td>');

                            if (this.tradeType == 8) {
                                $("#" + this.id).append('<td class="center">' + this.totalIncome.toFixed(2) + '</td>');
                                if (state != 2) {
                                    $("#" + this.id).append('<td class="center green">+' + (this.totalIncome - this.payment_aftertax).toFixed(2) + '</td>');
                                } else {
                                    $("#" + this.id).append('<td class="center">0</td>');
                                }
                            }
                            if (this.tradeType == 12) {
                                $("#" + this.id).append('<td class="center">' + this.allPrem.toFixed(2) + '</td>');
                                if (state != 2) {
                                    $("#" + this.id).append('<td class="center green">+' + this.insuranceIncome.toFixed(2) + '</td>');
                                } else {
                                    $("#" + this.id).append('<td class="center">0</td>');
                                }
                            }
                            else if (this.tradeType == 13) {
                                $("#" + this.id).append('<td class="center">' + this.reconTotal.toFixed(2) + '</td>');
                                $("#" + this.id).append('<td class="center red">-' + this.reconTotal.toFixed(2) + '</td>');
                            }
                            else if (this.tradeType == 15) {
                                $("#" + this.id).append('<td class="center">' + (this.payment_aftertax*10/9).toFixed(2) + '</td>');
                                $("#" + this.id).append('<td class="center red">-' + (this.payment_aftertax/9).toFixed(2) + '</td>');
                            }
                            else if (this.tradeType == 5 || this.tradeType == 6) {
                                $("#" + this.id).append('<td class="center">' + this.money.toFixed(2) + '</td>');
                                if (state != 2) {
                                    $("#" + this.id).append('<td class="center green">+' + this.money.toFixed(2) + '</td>');
                                } else {
                                    $("#" + this.id).append('<td class="center">0</td>');
                                }
                            }
                            else if (this.tradeType == 7 || this.tradeType == 9 || this.tradeType == 11) {
                                $("#" + this.id).append('<td class="center">' + this.money.toFixed(2) + '</td>');
                                if (state != 2) {
                                    $("#" + this.id).append('<td class="center red">-' + this.money.toFixed(2) + '</td>');
                                } else {
                                    $("#" + this.id).append('<td class="center">0</td>');
                                }
                            }

                            if (state == 2) {
                                $("#" + this.id).append('<td class="center brown">' + info + '</td>');
                            } else {
                                $("#" + this.id).append('<td class="center">' + info + '</td>');
                            }
                            if (this.tradeType == 13) {
                                $("#" + this.id).append('<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showReconInformation" onclick="detail(\'' + this.id + '\');">详情</a></td>');
                            }
                            else if(this.tradeType == 15){
                                $("#" + this.id).append('<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showReturnInformation" onclick="detail(\'' + this.id + '\');">详情</a></td>');
                            }
                            else {
                                $("#" + this.id).append('<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showInformation" onclick="detail(\'' + this.id + '\');">详情</a></td>');
                            }
                        }

                        else {
                            if (this.tradeType == 8) {
                                $("#tbody").append('<tr class="odd gradeX" id=' + this.id + ' item= ' + JSON.stringify(this) + '>' +
                                    '<td class="center">' + this.tradeTime + '</td> ' +
                                    '<td class="center">' + this.info + '</td>' +
                                    '<td class="center green">+' + (this.payment_aftertax * 10 / 9).toFixed(2) + '</td>' +
                                    '<td class="center red">-' + (this.payment_aftertax / 9.0).toFixed(2) + '</td>' +
                                    '<td class="center red">-' + this.payment_aftertax_custodian.toFixed(2) + '</td>' +
                                    '<td class="center red">-' + this.payment_aftertax_sponsor.toFixed(2) + '</td>' +
                                    '<td class="center green">+' + (this.payment_aftertax - this.payment_aftertax_sponsor - this.payment_aftertax_custodian).toFixed(2) + '</td>' +
                                    '<td class="center">' + info + '</td>' +
                                    '<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showInformation" onclick="detail(\'' + this.id + '\');">详情</a></td>' +
                                    '</tr>').data("item", this);
                            }
                            if (this.tradeType == 9) {
                                $("#tbody").append('<tr class="odd gradeX" id=' + this.id + ' item= ' + JSON.stringify(this) + '>' +
                                    '<td class="center">' + this.tradeTime + '</td> ' +
                                    '<td class="center">' + this.info + '</td>' +
                                    '<td class="center red">-' + (this.money).toFixed(2) + '</td>' +
                                    '<td class="center">0</td>' +
                                    '<td class="center">0</td>' +
                                    '<td class="center">0</td>' +
                                    '<td class="center red">-' + this.money.toFixed(2) + '</td>' +
                                    '<td class="center">' + info + '</td>' +
                                    '<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showInformation" onclick="detail(\'' + this.id + '\');">详情</a></td>' +
                                    '</tr>').data("item", this);
                            }
                            if (this.tradeType == 13) {
                                $("#tbody").append('<tr class="odd gradeX" id=' + this.id + ' item= ' + JSON.stringify(this) + '>' +
                                    '<td class="center">' + this.tradeTime + '</td> ' +
                                    '<td class="center">' + this.info + '</td>' +
                                    '<td class="center green">+' + this.reconTotal.toFixed(2) + '</td>' +
                                    '<td class="center">0</td>' +
                                    '<td class="center red">-' + this.reconCustodian.toFixed(2) + '</td>' +
                                    '<td class="center red">-' + this.reconSponsorMoney.toFixed(2) + '</td>' +
                                    '<td class="center green">+' + this.reconAdminMoney.toFixed(2) + '</td>' +
                                    '<td class="center">' + info + '</td>' +
                                    '<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showReconInformation" ' +
                                    'onclick="detail(\'' + this.id + '\')' +
                                    ';">详情</a></td>' +
                                    '</tr>').data("item", this);
                            }
                            if (this.tradeType == 15) {
                                $("#tbody").append('<tr class="odd gradeX" id=' + this.id + ' item= ' + JSON.stringify(this) + '>' +
                                    '<td class="center">' + this.tradeTime + '</td> ' +
                                    '<td class="center">' + this.info + '</td>' +
                                    '<td class="center">' + this.reconTotal.toFixed(2) + '</td>' +
                                    '<td class="center">0</td>' +
                                    '<td class="center">' + this.reconCustodian.toFixed(2) + '</td>' +
                                    '<td class="center">' + this.reconSponsorMoney.toFixed(2) + '</td>' +
                                    '<td class="center red">-' + this.reconAdminMoney.toFixed(2) + '</td>' +
                                    '<td class="center">' + info + '</td>' +
                                    '<td class="center"><a class = "fa fa-search" data-toggle="modal" href="#showReturnInformation" ' +
                                    'onclick="detail(\'' + this.id + '\')' +
                                    ';">详情</a></td>' +
                                    '</tr>').data("item", this);
                            }
                        }
                        $("#" + this.id).attr("item", JSON.stringify(this));//直接写item属性,json串里的空格会把this分成不完整的json串,所以改为直接set值
                    });
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    return;
                }
            });
        }

        function getCurDate() {
            var date = new Date();
            var year = date.getFullYear(); //获取当前年份
            var mon = date.getMonth() + 1; //获取当前月份
            var da = date.getDate(); //获取当前日
            mon = (mon < 10 ? "0" : "") + mon;
            da = (da < 10 ? "0" : "") + da;
            var mytime = year + "-" + mon + "-" + da;
            return mytime;
        }

        function getOneMonthEarlyDate() {
            var date = new Date();
            var year = date.getFullYear(); //获取当前年份
            var mon = date.getMonth(); //获取当前前一月份
            if (mon == 11) {
                year = year - 1;
            }
            var da = date.getDate(); //获取当前日
            if ((mon == 3 || mon == 5 || mon == 8 || mon == 10) && da == 31) {
                da = 30;
            } else if (mon == 1) {
                if ((year % 4 == 0 && year % 400 != 0) || year % 400 == 0) {
                    if (da > 29) {
                        da = 29;
                    }
                } else {
                    if (da > 28) {
                        da = 28;
                    }
                }
            }
            mon = (mon < 10 ? "0" : "") + mon;
            da = (da < 10 ? "0" : "") + da;
            var mytime = year + "-" + mon + "-" + da;
            return mytime;
        }

        function getGroup() {
            $.ajax({
                url: '${pageContext.request.contextPath}/v1/actors/groups/maps?type=0',
                type: 'GET',
                datatype: 'json',
                contentType: 'application/json;charset=utf-8',
                Accept: 'application/json',
                cache: false,
                success: function (data, textStatus, jqXHR) {
                    $("#platformCode").empty();
//                    $("#platformCode").append('<option value="" selected>全部</option>');
                    $(data.data).each(function () {
                        if (this.platformCode == 'qiqi') {
                            $("#platformCode").append('<option value="' + this.platformCode + '" selected>' + this.groupName + '</option>').data("item", this);
                        }
                        else {
                            $("#platformCode").append('<option value="' + this.platformCode + '">' + this.groupName + '</option>').data("item", this);
                        }
                        queryBut();
                    });
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    return;
                }
            });
        }

        function detail(id) {
            var str = $("#" + id).attr("item");
            var data = JSON.parse(str);
            var state = data.tradeState;
            var tradeType = data.tradeType;
            var info = "";
            var type = "";
            if (state == 0) {
                info = "交易成功";
            }
            if (state == 1) {
                info = "退款成功";
            }
            if (state == 2) {
                info = "退款失败";
            }
            if (tradeType == 8) {
                type = "车辆出租收入";
            }
            if (tradeType == 5) {
                type = "用户押金充值";
            }
            if (tradeType == 6) {
                type = "用户余额充值";
            }
            if (tradeType == 7) {
                type = "用户押金退款";
            }
            if (tradeType == 9) {
                type = "车主提取现金";
                if (state == 0) {
                    info = "交易成功";
                }
                if (state == 1) {
                    info = "提现成功";
                }
                if (state == 2) {
                    info = "提现失败";
                }
            }
            if (tradeType == 11) {
                type = "用户余额退款";
            }
            if (tradeType == 12) {
                type = "脉保";
                if (state == 0) {
                    info = "出单成功";
                }
                if (state == 1) {
                    info = "出单中";
                }
                if (state == 2) {
                    info = "出单失败";
                }
            }
            var type2 = data.tradeType;
            var platformCode = $("#platformCode").val();

            //车辆出租收入
            if (type2 == 8) {
                if (platformCode == 'qiqi') {

                    $(".com").hide();
                    $(".order").hide();
                    $(".rent").show();
                    $(".qiqi").show();
                    $(".trip").show();
                    $(".return").hide();
                    $(".mb").hide();

                    $("#lg_id").text(data.id);
                    $("#lg_trade_time").text(data.tradeTime);
                    $("#lg_trade_info").text(type);
                    $("#lg_user_tel").text(data.userMobile);
                    $("#lg_user_nickname").text(data.userNickName);
                    $("#lg_admin_tel").text(data.adminMobile);
                    $("#lg_admin_nickname").text(data.adminNickName);
                    $("#lg_total_flow").text(data.totalIncome.toFixed(2) + "元");
                    $("#lg_platform_income").text((data.totalIncome - data.payment_aftertax).toFixed(2) + "元");
                    $("#lg_trade_state").text(info);
                    $("#lg_trip_id").text(data.tripId);
                } else {

                    $(".com").show();
                    $(".order").hide();
                    $(".rent").show();
                    $(".qiqi").hide();
                    $(".trip").show();
                    $(".return").hide();
                    $(".mb").hide();

                    $("#lg_id").text(data.id);
                    $("#lg_trade_time").text(data.tradeTime);
                    $("#lg_trade_info").text(type);
                    $("#lg_user_tel").text(data.userMobile);
                    $("#lg_user_nickname").text(data.userNickName);
                    $("#lg_admin_tel").text(data.adminMobile);
                    $("#lg_admin_nickname").text(data.adminNickName);
                    $("#lg_total_flow").text(data.totalIncome.toFixed(2) + "元");
                    $("#lg_total_flow_a").text((data.payment_aftertax * 10 / 9).toFixed(2) + "元");
                    $("#lg_platform_charge").text(data.payment_platform_charge.toFixed(2) + "元");
                    $("#lg_platform_charge_a").text((data.payment_aftertax / 9).toFixed(2) + "元");
                    $("#lg_maintain_nickname").text(data.cNickName);
                    $("#lg_maintain_mobile").text(data.cMobile);
                    $("#lg_maintain_turnover_rent_scale").text(data.custodian_allocation_rate + "%");
                    $("#lg_maintain_turnover_rent").text(data.payment_receivable_custodian.toFixed(2) + "元");
                    $("#lg_maintain_turnover_rent_a").text(data.payment_aftertax_custodian.toFixed(2) + "元");
                    $("#lg_investment_nickname").text(data.sNickName);
                    $("#lg_investment_mobile").text(data.sMobile);
                    $("#lg_investment_turnover_rent_scale").text(data.sponsor_allocation_rate + "%");
                    $("#lg_investment_turnover_rent").text(data.payment_receivable_sponsor.toFixed(2) + "元");
                    $("#lg_investment_turnover_rent_a").text(data.payment_aftertax_sponsor.toFixed(2) + "元");
                    $("#lg_actual_income").text((data.payment_aftertax - data.payment_aftertax_custodian - data.payment_aftertax_sponsor).toFixed(2) + "元");
                    $("#lg_actual_income_a").text((data.payment_receivable - data.payment_receivable_custodian - data.payment_receivable_sponsor).toFixed(2) + "元");
                    $("#lg_company_rent").text(data.payment_receivable.toFixed(2) + "元");
                    $("#lg_actual_income_scale").text(data.platform_rate + "%");
                    $("#lg_trade_state").text(info);
                    $("#lg_trip_id").text(data.tripId);
                }
            }
            //车主提现&用户退余额
            if (type2 == 9 || type2 == 11) {

                $(".com").hide();
                $(".rent").hide();
                $(".order").hide();
                $(".qiqi").show();
                $(".trip").hide();
                $(".return").show();
                $(".mb").hide();

                $("#lg_id").text(data.id);
                $("#lg_trade_time").text(data.tradeTime);
                $("#lg_trade_info").text(type);
                $("#lg_user_tel").text(data.returnMobile);
                $("#lg_user_nickname").text(data.returnNickName);
                $("#lg_total_flow").text(data.money.toFixed(2) + "元");
                $("#lg_return_person").text(data.name);
                $("#lg_return_account").text(data.moneyToPlace);
                $("#lg_return_apply_time").text(data.applyTime);
                $("#lg_return_handle_time").text(data.handleTime);
                if (data.placeType == 11) {
                    $("#lg_return_platform").text("微信");
                }
                if (data.placeType == 6) {
                    $("#lg_return_platform").text("支付宝");
                }
                if (state != 2) {
                    $("#lg_platform_income").text("-" + data.money.toFixed(2) + "元");
                } else {
                    $("#lg_platform_income").text(0 + "元");
                }
                $("#lg_trade_state").text(info);

            }
            //用户押金
            if (type2 == 5 || type2 == 7 || type2 == 6) {

                $(".com").hide();
                $(".order").show();
                $(".rent").hide();
                $(".qiqi").show();
                $(".trip").hide();
                $(".return").hide();
                $(".mb").hide();
                if (data.payType == 6) {
                    $(".wx").hide();
                    $(".zfb").show();
                    $("#lg_user_buy_email").text(data.buyEmail);
                    $("#lg_user_buy_id").text(data.buyId);
                }
                if (data.payType == 11) {
                    $(".wx").show();
                    $(".zfb").hide();
                    $("#lg_user_wx_id").text(data.buyId);
                }
                $("#lg_id").text(data.id);
                $("#lg_order_id").text(data.tradeNo);
                $("#lg_trade_time").text(data.tradeTime);
                $("#lg_trade_info").text(type);
                $("#lg_user_tel").text(data.returnMobile);
                $("#lg_user_nickname").text(data.returnNickName);
                $("#lg_total_flow").text(data.money.toFixed(2) + "元");
                if (state == 2) {
                    $("#lg_platform_income").text(0 + "元");
                } else {
                    if (type2 == 5 || type2 == 6) {
                        $("#lg_platform_income").text(data.money.toFixed(2) + "元");
                    }
                    else {
                        $("#lg_platform_income").text("-" + data.money.toFixed(2) + "元");
                    }

                }
                $("#lg_trade_state").text(info);
            }

            if (type2 == 12) {
                $(".com").hide();
                $(".order").hide();
                $(".rent").hide();
                $(".qiqi").show();
                $(".trip").hide();
                $(".return").hide();
                $(".mb").show();

                $("#lg_id").text(data.id);
                $("#lg_mb_id").text(data.policyRef);
                $("#lg_trade_time").text(data.tradeTime);
                $("#lg_trade_info").text(type);
                $("#lg_mb_product_code").text(data.productCode);
                if (data.productCode == "140601") {
                    $("#lg_mb_product_name").text("骑骑无忧年费出行险");
                }
                if (data.productCode == "140701") {
                    $("#lg_mb_product_name").text("骑骑无忧单次出行险");
                }
                $("#lg_mb_company").text(data.policyHolderName);
                $("#lg_user_tel").text(data.returnMobile);
                $("#lg_user_nickname").text(data.returnNickName);
                $("#lg_mb_name").text(data.insuredName);
                $("#lg_mb_mobile").text(data.insuredMobile);
                $("#lg_mb_id_card").text(data.insuredCardNum);
                if (data.productCode == "140701") {
                    $("#lg_mb_time").text("单次骑行最长24小时");
                }
                if (data.productCode == "140601") {
                    $("#lg_mb_time").text("一年");
                }
                $("#lg_mb_start_time").text(data.startTime);
                $("#lg_mb_end_time").text(data.endTime);
                $("#lg_mb_state").text(data.policyStatusDesc);
                $("#lg_total_flow").text(data.money.toFixed(2) + "元");
                if (state == 2) {
                    $("#lg_platform_income").text(0 + "元");
                } else {
                    $("#lg_platform_income").text(data.insuranceIncome.toFixed(2) + "元");
                }
                $("#lg_insurance_proportion").text(data.insuranceProportion * 100 + "%");
                $("#lg_trade_state").text(info);

            }

            if (type2 == 13) {

                var balance = parseFloat(data.payment_receivable - data.payment_aftertax);
                $("#showReconInformation [name=tripId]").html(data.thirdId);
                $("#showReconInformation [name=paytime]").html(data.paymentTime);
                $("#showReconInformation [name=recontime]").html(data.tradeTime);
                $("#showReconInformation [name=payment_receivable]").html(data.payment_receivable.toFixed(2) + "元");
                $("#showReconInformation [name=payment_aftertax]").html(data.payment_aftertax.toFixed(2) + "元");
                $("#showReconInformation [name=balance]").html(balance.toFixed(2) + "元");
                $("#showReconInformation [name=sname]").html(data.sNickName);
                $("#showReconInformation [name=smobile]").html(data.sMobile);
                $("#showReconInformation [name=srate]").html(data.sponsor_allocation_rate + "%");
                $("#showReconInformation [name=sbalance]").html((balance * data.sponsor_allocation_rate / 100).toFixed(2) + "元");
                $("#showReconInformation [name=cname]").html(data.cNickName);
                $("#showReconInformation [name=cmobile]").html(data.cMobile);
                $("#showReconInformation [name=crate]").html(data.custodian_allocation_rate + "%");
                $("#showReconInformation [name=cbalance]").html((balance * data.custodian_allocation_rate / 100).toFixed(2) + "元");
                $("#showReconInformation [name=comname]").html(data.adminNickName);
                $("#showReconInformation [name=commobile]").html(data.adminMobile);
                $("#showReconInformation [name=comrate]").html(data.platform_rate + "%");
                $("#showReconInformation [name=combalance]").html((balance.toFixed(2) -
                    ((balance * data.sponsor_allocation_rate / 100).toFixed(2)) -
                    ((balance * data.custodian_allocation_rate / 100).toFixed(2))).toFixed(2) + "元");
                $("#showReconInformation [name=uname]").html(data.userNickName);
                $("#showReconInformation [name=umobile]").html(data.userMobile);
                var spans = $("#recontb span");
                for (var i = 0; i < spans.length; i++) {
                    var span = spans.eq(i);
                    if (span.html() == "") {
                        span.html("暂无");
                    }
                }
            }
            if (type2 == 15){
                $("#showReturnInformation [name=tripId]").html(data.thirdId);
                $("#showReturnInformation [name=paytime]").html(data.paymentTime);
                $("#showReturnInformation [name=returntime]").html(data.tradeTime);
                $("#showReturnInformation [name=return_amount]").html((data.payment_aftertax*10/9).toFixed(2) + "元");
                $("#showReturnInformation [name=return_platform]").html((data.payment_aftertax/9).toFixed(2) + "元");
                $("#showReturnInformation [name=return_com]").html(data.payment_aftertax.toFixed(2) + "元");
                $("#showReturnInformation [name=sname]").html(data.sNickName);
                $("#showReturnInformation [name=smobile]").html(data.sMobile);
                $("#showReturnInformation [name=srate]").html(data.sponsor_allocation_rate + "%");
                $("#showReturnInformation [name=sbalance]").html((data.payment_aftertax * data.sponsor_allocation_rate / 100).toFixed(2) + "元");
                $("#showReturnInformation [name=cname]").html(data.cNickName);
                $("#showReturnInformation [name=cmobile]").html(data.cMobile);
                $("#showReturnInformation [name=crate]").html(data.custodian_allocation_rate + "%");
                $("#showReturnInformation [name=cbalance]").html((data.payment_aftertax * data.custodian_allocation_rate / 100).toFixed(2) + "元");
                $("#showReturnInformation [name=comname]").html(data.adminNickName);
                $("#showReturnInformation [name=commobile]").html(data.adminMobile);
                $("#showReturnInformation [name=comrate]").html(data.platform_rate + "%");
                $("#showReturnInformation [name=combalance]").html((data.payment_aftertax.toFixed(2) -
                    ((data.payment_aftertax * data.sponsor_allocation_rate / 100).toFixed(2)) -
                    ((data.payment_aftertax * data.custodian_allocation_rate / 100).toFixed(2))).toFixed(2) + "元");
                $("#showReturnInformation [name=uname]").html(data.userNickName);
                $("#showReturnInformation [name=umobile]").html(data.userMobile);
                var spans = $("#returntb span");
                for (var i = 0; i < spans.length; i++) {
                    var span = spans.eq(i);
                    if (span.html() == "") {
                        span.html("暂无");
                    }
                }
            }



        }
    </script>

    <div class="row">
        <div class="col-xs-12 col-md-12 col-lg-12">
            <div class="panel-body">
                <div class="row">
                    <div class="col-xs-12 col-md-12 col-lg-12 page-header">
                        <div class="col-xs-2 col-md-2 col-lg-2 platformCode">
                            <div class="form-group ">
                                <span for="platformCode">平台</span>
                                <span>
                                        <select class="form-control" name='platformCode' id='platformCode'
                                                onchange="queryBut()">
                                        </select>
                                </span>
                            </div>
                        </div>
                        <div class="col-xs-4 col-md-4 col-lg-4 time">
                            <div class="form-group">
                                <span for="startdate">开始时间(可选）</span>
                                <span><input type="date" class="form-control" name="startdate"
                                             id="startdate"/></span>
                            </div>
                        </div>
                        <div class="col-xs-4 col-md-4 col-lg-4 time">
                            <div class="form-group">
                                <span for="enddate">结束时间(可选）</span>
                                <span><input type="date" class="form-control" name="enddate" id="enddate"/></span>
                            </div>
                        </div>
                        <div class="col-xs-2 col-md-2 col-lg-2 pt">
                            <div class="form-group">
                                <span for="trade_type">交易类型</span>
                                <span>
                                        <select class="form-control" name='trade_type'
                                                id='trade_type1'
                                                onchange="queryBut()">
                                                <option value="0">全部</option>
                                                <option value="8">车辆出租收入</option>
                                                <option value="9">车主提取现金</option>
                                                <option value="13">调账收入</option>
                                                <option value="15">车费退还支出</option>
                                        </select>
                                        <select class="form-control" name='trade_type'
                                                id='trade_type2'
                                                onchange="queryBut()">
                                             <option value="0">全部</option>
                                             <option value="5">用户充值押金</option>
                                             <option value="6">用户充值余额</option>
                                             <option value="7">用户押金退款</option>
                                             <option value="8">车辆出租收入</option>
                                             <option value="9">车主提取现金</option>
                                             <option value="11">用户余额退款</option>
                                             <option value="12">用户脉保支出</option>
                                             <option value="13">调账支出</option>
                                             <option value="15">车费退还支出</option>
                                        </select>
                                        </span>
                            </div>
                        </div>
                        <div class="col-xs-1 col-md-1 col-lg-1" style="padding-top: 20px;">
                            <div class="form-group">
                                <button type="button" class="btn btn-outline btn-primary btn-sm"
                                        onclick="queryBut()">
                                    <i class="fa fa-search"></i>&nbsp;查询
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 col-md-12 col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                账户流水信息
                            </div>
                            <div class="panel-body">
                                <div class="dataTable_wrapper">
                                    <div class="detail">
                                        <div style="float: right;">
                                            <span id="account_balance"></span>
                                        </div>
                                    </div>
                                    <table class="table table-bordered table-hover tablefont" id="dataTables-example"
                                           style="table-layout: fixed">
                                        <thead>
                                        <tr id="ttr">
                                                <%--<th class="center" style="width:20%;">时间</th>--%>
                                                <%--<th class="center" style="width:15%;">交易类型</th>--%>
                                                <%--<th class="center" style="width:10%;">交易流水</th>--%>
                                                <%--<th class="center" style="width:10%;">平台费用</th>--%>
                                                <%--<th class="center" style="width:10%;">维护分成</th>--%>
                                                <%--<th class="center" style="width:10%;">投资分成</th>--%>
                                                <%--<th class="center" style="width:9%;">实际收益</th>--%>
                                                <%--<th class="center" style="width:9%;">交易状态</th>--%>
                                                <%--<th class="center" style="width:8%;">操作</th>--%>
                                        </tr>
                                        </thead>
                                        <tbody id="tbody">
                                        </tbody>
                                    </table>
                                    <!-- /.table-responsive -->
                                    <div class="col-xs-12 col-md-12 col-lg-12">
                                        <div style="float: right;padding-top: 22px;padding-left:10px;"
                                             class="dataTables_length">
                                            <select name="dataTables-example_length" onchange="pageCount()"
                                                    id="dataTables-example_length" aria-controls="dataTables-example"
                                                    class="form-control input-sm">
                                                <option value="10">每页10行</option>
                                                <option value="25">每页25行</option>
                                                <option value="50">每页50行</option>
                                                <option value="100">每页100行</option>
                                            </select>
                                        </div>
                                        <div style="float: right" class="dataTables_paginate paging_simple_numbers"
                                             id="dataTables-example_paginate">
                                            <ul class="pagination" id="paginationPage">
                                                <li class="page active" class="paginate_button"
                                                    aria-controls="dataTables-example"
                                                    tabindex="0"><a href="#">1</a></li>
                                                <li class="page" class="paginate_button "
                                                    aria-controls="dataTables-example"
                                                    tabindex="1"><a href="#">2</a></li>
                                                <li class="page" class="paginate_button "
                                                    aria-controls="dataTables-example"
                                                    tabindex="2"><a href="#">3</a></li>
                                                <li class="page" class="paginate_button "
                                                    aria-controls="dataTables-example"
                                                    tabindex="3"><a href="#">4</a></li>
                                                <li class="page" class="paginate_button "
                                                    aria-controls="dataTables-example"
                                                    tabindex="4"><a href="#">5</a></li>
                                                <li class="page" class="paginate_button "
                                                    aria-controls="dataTables-example"
                                                    tabindex="5"><a href="#">6</a></li>
                                            </ul>
                                            <ul class="pagination">
                                                <li class="paginate_button next" aria-controls="dataTables-example"
                                                    tabindex="0" id="dataTables-example_next"><a href="#"
                                                                                                 onclick="onPage(this)">Next</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- /.panel-body -->
                        </div>
                    </div><!--/col-->
                </div>

            </div>
                <%--</div>--%>
        </div>
    </div>
    <!-- /.modal -->
    <div class="modal fade" id="showInformation">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">交易信息详情</h4>
                </div>
                <div class="modal-body">
                    <div class="container">
                        <div id='addRole'>
                            <input name="id" type="hidden"/>
                            <div class="condi_container">
                                <span class="cd_name">流水号:</span>
                                <span class="cd_val" id='lg_id'>
								</span>
                            </div>
                            <div class="condi_container order">
                                <span class="cd_name">订单号:</span>
                                <span class="cd_val" id='lg_order_id'>
								</span>
                            </div>

                            <div class="condi_container com trip">
                                <span class="cd_name">订单号:</span>
                                <span class="cd_val" id='lg_trip_id'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">保单号:</span>
                                <span class="cd_val" id='lg_mb_id'>
								</span>
                            </div>

                            <div class="condi_container">
                                <span class="cd_name">交易时间:</span>
                                <span class="cd_val" id='lg_trade_time'>
								</span>
                            </div>
                            <div class="condi_container">
                                <span class="cd_name">交易类型:</span>
                                <span class="cd_val" id='lg_trade_info'>
                                </span>
                            </div>
                            <div class="condi_container mb">
                                <span class="cd_name">保险编号:</span>
                                <span class="cd_val" id='lg_mb_product_code'>
								</span>
                            </div>
                            <div class="condi_container mb">
                                <span class="cd_name">保险名称:</span>
                                <span class="cd_val" id='lg_mb_product_name'>
								</span>
                            </div>
                            <div class="condi_container mb">
                                <span class="cd_name">合作方:</span>
                                <span class="cd_val" id='lg_mb_company'>
								</span>
                            </div>
                            <div class="condi_container">
                                <span class="cd_name">用户昵称:</span>
                                <span class="cd_val" id='lg_user_nickname'>
								</span>
                            </div>

                            <div class="condi_container">
                                <span class="cd_name">用户手机号:</span>
                                <span class="cd_val" id='lg_user_tel'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">被保人:</span>
                                <span class="cd_val" id='lg_mb_name'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">被保人电话:</span>
                                <span class="cd_val" id='lg_mb_mobile'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">被保人身份号码:</span>
                                <span class="cd_val" id='lg_mb_id_card'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">保期:</span>
                                <span class="cd_val" id='lg_mb_time'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">生效日期:</span>
                                <span class="cd_val" id='lg_mb_start_time'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">失效日期:</span>
                                <span class="cd_val" id='lg_mb_end_time'>
								</span>
                            </div>

                            <div class="condi_container mb">
                                <span class="cd_name">保单状态:</span>
                                <span class="cd_val" id='lg_mb_state'>
								</span>
                            </div>

                            <div class="condi_container order zfb">
                                <span class="cd_name">用户支付宝账户:</span>
                                <span class="cd_val" id='lg_user_buy_email'>
								</span>
                            </div>
                            <div class="condi_container order zfb">
                                <span class="cd_name">用户支付宝号:</span>
                                <span class="cd_val" id='lg_user_buy_id'>
								</span>
                            </div>
                            <div class="condi_container order wx">
                                <span class="cd_name">用户微信openId:</span>
                                <span class="cd_val" id='lg_user_wx_id'>
								</span>
                            </div>

                            <div class="condi_container return">
                                <span class="cd_name">退款人:</span>
                                <span class="cd_val" id='lg_return_person'>
								</span>
                            </div>

                            <div class="condi_container return">
                                <span class="cd_name">退款账户:</span>
                                <span class="cd_val" id='lg_return_account'>
								</span>
                            </div>

                            <div class="condi_container return">
                                <span class="cd_name">退款平台:</span>
                                <span class="cd_val" id='lg_return_platform'>
								</span>
                            </div>

                            <div class="condi_container return">
                                <span class="cd_name">申请时间:</span>
                                <span class="cd_val" id='lg_return_apply_time'>
								</span>
                            </div>

                            <div class="condi_container return">
                                <span class="cd_name">处理时间:</span>
                                <span class="cd_val" id='lg_return_handle_time'>
								</span>
                            </div>

                            <div class="condi_container rent">
                                <span class="cd_name">车主昵称:</span>
                                <span class="cd_val" id='lg_admin_nickname'>
                                </span>
                            </div>

                            <div class="condi_container">
                                <span class="cd_name">总流水:</span>
                                <span class="cd_val" id='lg_total_flow'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">实际流水:</span>
                                <span class="cd_val" id='lg_total_flow_a'>
                                </span>
                            </div>

                                <%--<div class="condi_container order">--%>
                                <%--<span class="cd_name">支付状态:</span>--%>
                                <%--<span class="cd_val" id='lg_pay_state'>--%>
                                <%--</span>--%>
                                <%--</div>--%>

                            <div class="condi_container mb">
                                <span class="cd_name">分成比例:</span>
                                <span class="cd_val" id='lg_insurance_proportion'>
                                </span>
                            </div>


                            <div class="condi_container qiqi">
                                <span class="cd_name">平台收支:</span>
                                <span class="cd_val" id='lg_platform_income'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">平台费用:</span>
                                <span class="cd_val" id='lg_platform_charge'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">实际平台费用:</span>
                                <span class="cd_val" id='lg_platform_charge_a'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">集团收益:</span>
                                <span class="cd_val" id='lg_company_rent'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">维护人昵称:</span>
                                <span class="cd_val" id='lg_maintain_nickname'>
                                </span>
                            </div>
                            <div class="condi_container com">
                                <span class="cd_name">维护人电话:</span>
                                <span class="cd_val" id='lg_maintain_mobile'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">维护分成比例:</span>
                                <span class="cd_val" id='lg_maintain_turnover_rent_scale'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">维护分成收益:</span>
                                <span class="cd_val" id='lg_maintain_turnover_rent'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">维护分成实际收益:</span>
                                <span class="cd_val" id='lg_maintain_turnover_rent_a'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">投资人昵称:</span>
                                <span class="cd_val" id='lg_investment_nickname'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">投资人电话:</span>
                                <span class="cd_val" id='lg_investment_mobile'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">投资分成比例:</span>
                                <span class="cd_val" id='lg_investment_turnover_rent_scale'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">投资分成收益:</span>
                                <span class="cd_val" id='lg_investment_turnover_rent'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">投资分成实际收益:</span>
                                <span class="cd_val" id='lg_investment_turnover_rent_a'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">集团收入比例:</span>
                                <span class="cd_val" id='lg_actual_income_scale'>
                                </span>
                            </div>

                            <div class="condi_container com">
                                <span class="cd_name">应收收益:</span>
                                <span class="cd_val" id='lg_actual_income_a'>
                                </span>
                            </div>
                            <div class="condi_container com">
                                <span class="cd_name">实际收益:</span>
                                <span class="cd_val" id='lg_actual_income'>
                                </span>
                            </div>

                            <div class="condi_container">
                                <span class="cd_name">交易状态:</span>
                                <span class="cd_val" id='lg_trade_state'>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal fade" id="showReconInformation">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">调账信息详情</h4>
                </div>
                <div class="modal-body">
                    <div class="container">
                        <table class="table table-bordered table-hover tablefont">
                            <tbody id="recontb">
                            <tr>
                                <td colspan="2" style="width: 50%">订单号</td>
                                <td colspan="2" style="width: 50%"><span name="tripId"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="width: 50%">支付时间</td>
                                <td colspan="2" style="width: 50%"><span name="paytime"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="width: 50%">调账时间</td>
                                <td colspan="2" style="width: 50%"><span name="recontime"></span></td>
                            </tr>
                            <tr>
                                <td style="width: 25%">用户昵称</td>
                                <td style="width: 25%"><span name="uname"></span></td>
                                <td style="width: 25%">用户电话</td>
                                <td style="width: 25%"><span name="umobile"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">应收金额</td>
                                <td colspan="2"><span name="payment_receivable"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">实收金额</td>
                                <td colspan="2"><span name="payment_aftertax"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">差额</td>
                                <td colspan="2"><span name="balance"></span></td>
                            </tr>
                            <tr class="s">
                                <td style="width: 25%">投资人昵称</td>
                                <td style="width: 25%"><span name="sname"></span></td>
                                <td style="width: 25%">投资人电话</td>
                                <td style="width: 25%"><span name="smobile"></span></td>
                            </tr>
                            <tr class="s">
                                <td>投资分成比例</td>
                                <td><span name="srate"></span></td>
                                <td>投资差额</td>
                                <td><span name="sbalance"></span></td>
                            </tr>
                            <tr class="c">
                                <td>维护人昵称</td>
                                <td><span name="cname"></span></td>
                                <td>维护人电话</td>
                                <td><span name="cmobile"></span></td>
                            </tr>
                            <tr class="c">
                                <td>维护分成比例</td>
                                <td><span name="crate"></span></td>
                                <td>维护差额</td>
                                <td><span name="cbalance"></span></td>
                            </tr>
                            <tr>
                                <td>集团客户昵称</td>
                                <td><span name="comname"></span></td>
                                <td>集团客户电话</td>
                                <td><span name="commobile"></span></td>
                            </tr>
                            <tr>
                                <td>集团分成比例</td>
                                <td><span name="comrate"></span></td>
                                <td>集团差额</td>
                                <td><span name="combalance"></span></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="showReturnInformation">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">车费退还信息详情</h4>
                </div>
                <div class="modal-body">
                    <div class="container">
                        <table class="table table-bordered table-hover tablefont">
                            <tbody id="returntb">
                            <tr>
                                <td colspan="2" style="width: 50%">订单号</td>
                                <td colspan="2" style="width: 50%"><span name="tripId"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="width: 50%">支付时间</td>
                                <td colspan="2" style="width: 50%"><span name="paytime"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="width: 50%">退还时间</td>
                                <td colspan="2" style="width: 50%"><span name="returntime"></span></td>
                            </tr>
                            <tr>
                                <td style="width: 25%">用户昵称</td>
                                <td style="width: 25%"><span name="uname"></span></td>
                                <td style="width: 25%">用户电话</td>
                                <td style="width: 25%"><span name="umobile"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">退还金额</td>
                                <td colspan="2"><span name="return_amount"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">平台退还</td>
                                <td colspan="2"><span name="return_platform"></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">集团总退还</td>
                                <td colspan="2"><span name="return_com"></span></td>
                            </tr>
                            <tr class="s">
                                <td style="width: 25%">投资人昵称</td>
                                <td style="width: 25%"><span name="sname"></span></td>
                                <td style="width: 25%">投资人电话</td>
                                <td style="width: 25%"><span name="smobile"></span></td>
                            </tr>
                            <tr class="s">
                                <td>投资分成比例</td>
                                <td><span name="srate"></span></td>
                                <td>投资退还</td>
                                <td><span name="sbalance"></span></td>
                            </tr>
                            <tr class="c">
                                <td>维护人昵称</td>
                                <td><span name="cname"></span></td>
                                <td>维护人电话</td>
                                <td><span name="cmobile"></span></td>
                            </tr>
                            <tr class="c">
                                <td>维护分成比例</td>
                                <td><span name="crate"></span></td>
                                <td>维护退还</td>
                                <td><span name="cbalance"></span></td>
                            </tr>
                            <tr>
                                <td>集团客户昵称</td>
                                <td><span name="comname"></span></td>
                                <td>集团客户电话</td>
                                <td><span name="commobile"></span></td>
                            </tr>
                            <tr>
                                <td>集团分成比例</td>
                                <td><span name="comrate"></span></td>
                                <td>集团退还</td>
                                <td><span name="combalance"></span></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                </div>
            </div>
        </div>
    </div>


    <%@include file="../alert.jsp" %>
</page:page>
